package com.istock.union.user.model;

import java.io.Serializable;
import java.util.Date;

public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * VARCHAR(24) 必填<br>
     * 
     */
    private String id;

    /**
     * VARCHAR(24)<br>
     * 租户编号
     */
    private String tenantCode;

    /**
     * VARCHAR(24)<br>
     * 部门ID
     */
    private String deptCode;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 登录账号
     */
    private String loginName;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 用户昵称
     */
    private String userName;

    /**
     * VARCHAR(100) 默认值[]<br>
     * 用户邮箱
     */
    private String email;

    /**
     * VARCHAR(20) 默认值[]<br>
     * 手机号码
     */
    private String phoneNumber;

    /**
     * DECIMAL(5)<br>
     * 性别|1:男,2:女
     */
    private Integer sex;

    /**
     * VARCHAR(100) 默认值[]<br>
     * 密码
     */
    private String password;

    /**
     * VARCHAR(100) 默认值[]<br>
     * 盐加密
     */
    private String salt;

    /**
     * TIMESTAMP(19)<br>
     * 密码失效时间
     */
    private Date passwdExpire;

    /**
     * DECIMAL(5) 默认值[1]<br>
     * 帐号状态:1正常,2禁用
     */
    private Integer status;

    /**
     * VARCHAR(24) 默认值[]<br>
     * 创建者
     */
    private String createBy;

    /**
     * TIMESTAMP(19)<br>
     * 创建时间
     */
    private Date createTime;

    /**
     * VARCHAR(24) 默认值[]<br>
     * 更新者
     */
    private String updateBy;

    /**
     * TIMESTAMP(19)<br>
     * 更新时间
     */
    private Date updateTime;

    /**
     * VARCHAR(500)<br>
     * 
     */
    private String remark;

    /**
     * VARCHAR(24) 必填<br>
     * 获得 
     */
    public String getId() {
        return id;
    }

    /**
     * VARCHAR(24) 必填<br>
     * 设置 
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * VARCHAR(24)<br>
     * 获得 租户编号
     */
    public String getTenantCode() {
        return tenantCode;
    }

    /**
     * VARCHAR(24)<br>
     * 设置 租户编号
     */
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode == null ? null : tenantCode.trim();
    }

    /**
     * VARCHAR(24)<br>
     * 获得 部门ID
     */
    public String getDeptCode() {
        return deptCode;
    }

    /**
     * VARCHAR(24)<br>
     * 设置 部门ID
     */
    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode == null ? null : deptCode.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 登录账号
     */
    public String getLoginName() {
        return loginName;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 登录账号
     */
    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 用户昵称
     */
    public String getUserName() {
        return userName;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 用户昵称
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 获得 用户邮箱
     */
    public String getEmail() {
        return email;
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 设置 用户邮箱
     */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    /**
     * VARCHAR(20) 默认值[]<br>
     * 获得 手机号码
     */
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * VARCHAR(20) 默认值[]<br>
     * 设置 手机号码
     */
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
    }

    /**
     * DECIMAL(5)<br>
     * 获得 性别|1:男,2:女
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * DECIMAL(5)<br>
     * 设置 性别|1:男,2:女
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 获得 密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 设置 密码
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 获得 盐加密
     */
    public String getSalt() {
        return salt;
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 设置 盐加密
     */
    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 密码失效时间
     */
    public Date getPasswdExpire() {
        return passwdExpire;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 密码失效时间
     */
    public void setPasswdExpire(Date passwdExpire) {
        this.passwdExpire = passwdExpire;
    }

    /**
     * DECIMAL(5) 默认值[1]<br>
     * 获得 帐号状态:1正常,2禁用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * DECIMAL(5) 默认值[1]<br>
     * 设置 帐号状态:1正常,2禁用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * VARCHAR(24) 默认值[]<br>
     * 获得 创建者
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * VARCHAR(24) 默认值[]<br>
     * 设置 创建者
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * VARCHAR(24) 默认值[]<br>
     * 获得 更新者
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * VARCHAR(24) 默认值[]<br>
     * 设置 更新者
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * VARCHAR(500)<br>
     * 获得 
     */
    public String getRemark() {
        return remark;
    }

    /**
     * VARCHAR(500)<br>
     * 设置 
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tenantCode=").append(tenantCode);
        sb.append(", deptCode=").append(deptCode);
        sb.append(", loginName=").append(loginName);
        sb.append(", userName=").append(userName);
        sb.append(", email=").append(email);
        sb.append(", phoneNumber=").append(phoneNumber);
        sb.append(", sex=").append(sex);
        sb.append(", password=").append(password);
        sb.append(", salt=").append(salt);
        sb.append(", passwdExpire=").append(passwdExpire);
        sb.append(", status=").append(status);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserInfo other = (UserInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTenantCode() == null ? other.getTenantCode() == null : this.getTenantCode().equals(other.getTenantCode()))
            && (this.getDeptCode() == null ? other.getDeptCode() == null : this.getDeptCode().equals(other.getDeptCode()))
            && (this.getLoginName() == null ? other.getLoginName() == null : this.getLoginName().equals(other.getLoginName()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getPhoneNumber() == null ? other.getPhoneNumber() == null : this.getPhoneNumber().equals(other.getPhoneNumber()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
            && (this.getPasswdExpire() == null ? other.getPasswdExpire() == null : this.getPasswdExpire().equals(other.getPasswdExpire()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTenantCode() == null) ? 0 : getTenantCode().hashCode());
        result = prime * result + ((getDeptCode() == null) ? 0 : getDeptCode().hashCode());
        result = prime * result + ((getLoginName() == null) ? 0 : getLoginName().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
        result = prime * result + ((getPasswdExpire() == null) ? 0 : getPasswdExpire().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}